	function replaceAll__MODULE_ID__(str, replacements)
	{
	    for (i = 0; i < replacements.length; i++)
	    {
	        var idx = str.indexOf(replacements[i][0]);
	
	        while (idx > -1)
	        {
	            str = str.replace(replacements[i][0], replacements[i][1]);
	            idx = str.indexOf(replacements[i][0]);
	        }
	    }
	
	    return str;
	}